package com.geotmt.billingcenter.modules.cost.mapper.provider;

import com.geotmt.billingcenter.common.entry.CostRuleEntry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Description 成本 consume SQL
 * @Author      yanghanwei
 * @Mail        yanghanwei@geotmt.com
 * @Date        2019/3/19 19:58
 * @Version     v1
 **/
public class CostRuleProvider {

    private static final Logger logger = LoggerFactory.getLogger(CostRuleProvider.class);

    /**
     * 成本 addRule
     * @return
     */
    public String add(CostRuleEntry costRule){
        StringBuffer sql = new StringBuffer();
        sql.append("INSERT INTO `fin_cost_curr_conf_rule`")
                .append(" (price,stair_cycle,stair_start_time)")
                .append(" VALUES")
                .append(" (#{price},#{stairCycle},#{stairStartTime})");
        logger.info("成本 addRule SQL:{}",sql);
        return sql.toString();
    }
}
